package com.ecpedu.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum SexEnum {
    MAN(1,"男"),
    WOMAN(2,"女")
    ;
    @EnumValue//将字段的属性和数据库的字段一致
    private Integer sex;
    private String sexName;

    SexEnum(Integer sex, String sexName) {
        this.sex = sex;
        this.sexName = sexName;
    }
}
